
let arr = [
    {id:1, name: '零食', pid: 0, level: 1},
    {id:2, name: '生活用品', pid: 0, level: 1},
    {id:3, name: '攻城狮', pid: 0, level: 1},

    {id:4, name: '方便面', pid: 1, level: 2},
    {id:5, name: '汽水', pid: 1, level: 2},
    {id:6, name: '薯条', pid: 1, level: 2},
    
    {id:7, name: '床单', pid: 2, level: 2},
    {id:8, name: '枕头', pid: 2, level: 2},
    {id:9, name: '洗发水', pid: 2, level: 2},

    {id:10, name: 'WEB大前端', pid: 3, level: 2},
    {id:11, name: 'JAVA', pid: 3, level: 2},
    {id:12, name: 'PYTHON', pid: 3, level: 2},
    
    {id:13, name: 'JS变量', pid: 10, level: 3},
    {id:14, name: 'JS判断', pid: 10, level: 3},
    {id:15, name: 'JS循环', pid: 10, level: 3},
    
    {id:16, name: 'JAVA变量', pid: 11, level: 3},
    {id:17, name: 'JAVA判断', pid: 11, level: 3},
    {id:18, name: 'JAVA循环', pid: 11, level: 3},
]